#include <iostream>
using namespace std;

const int N = 1e4;
int a[N], b[N], c[N];

int main() {
    string x, y;
    cin >> x >> y;
    
    int n = x.size(), m = y.size();
    for (int i = n - 1; i >= 0; i--) a[n - i - 1] = x[i] - '0';
    for (int i = m - 1; i >= 0; i--) b[m - i - 1] = y[i] - '0';
    
    for (int i = 0; i < n; i++)
        for (int j = 0; j < m; j++)
            c[i + j] += a[i] * b[j];
    
    for (int i = 0; i < n + m - 1; i++)
        if (c[i] >= 10) {
            c[i + 1] += c[i] / 10;
            c[i] %= 10;
        }
    
    int k = n + m - 1;
    while (k > 0 && !c[k]) k--;
    while (k >= 0) cout << c[k--];
    
    return 0;
}